package com.example.yls.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Created by yls on 2018/11/6.
 */

public class MyReceiver  extends BroadcastReceiver{
    private IOUpdateListener listener;
    public MyReceiver(MainActivity mainActivity) {
        this.listener=listener;
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        String action=intent.getAction();
        Log.e("MyReceiver","onReceive"+action);
        listener.updateTime();
    }
}
